package com.itzh.factory.abstr;

import com.itzh.factory.MenNiu;
import com.itzh.factory.Milk;
import com.itzh.factory.Telunsu;
import com.itzh.factory.YiLi;
import com.itzh.factory.func.MengNiuFactory;
import com.itzh.factory.func.TelunsuFactory;
import com.itzh.factory.func.YiLiFactory;

public class MilkFactory extends AbstractFactory {
    @Override
    public Milk getTelunsu() {
        return new TelunsuFactory().getMilk();
    }

    @Override
    public Milk getMenNiu() {
        return new MengNiuFactory().getMilk();
    }

    @Override
    public Milk getYili() {
        return new YiLiFactory().getMilk();
    }
}
